import request from '@/utils/request'

export function listsupplier(query) {
  return request({
    url: '/system/SupplierBase/list',
    method: 'get',
    params: query
  })
}
export function selectList(query) {
  return request({
    url: '/system/SupplierBase/listSelect',

    method: 'get',
    params: query
  })
}
export function delsupplier(compFeeIds) {
  return request({
    url: '/system/SupplierBase/' + compFeeIds,
    method: 'delete'
  })
}
export function supplierAdd(data) {
  return request({
    url: '/system/SupplierBase',
    method: 'post',
    data: data
  })
}
export function updategsupplier(data) {
  return request({
    url: '/system/SupplierBase',
    method: 'put',
    data: data
  })
}
export function supplierInfo(query) {
  return request({
    url: '/system/SupplierBase/' + query,
    method: 'get',
  })
}
// 启用禁用供应商
export function effectSupplier(id, effect) {
  console.log('11')
  return request({
    url: '/system/SupplierBase/effect/' + id + '/' + effect,
    method: 'put',
  })
}
